# from calculate_1 import * 使用*，是全部调用，但是模块如果有第二行，则第二行内容不可调用
# __all__ = ['add','number']

# 变量
number = 200
name = 'calculate_1'

# 函数
def add(*args):
    if len(args) > 1:
        sum = 0
        for i in args:
            sum += i
        return sum
    else:
        print('至少传入两个参数。。。')

def minus(*args):
    if len(args) > 1:
        sum = 0
        for i in args:
            sum -= i
        return sum
    else:
        print('至少传入两个参数。。。')

def multiply(*args):
    pass

def divide(*args):
    pass

class Calculate:
    def __init__(self,num):
        self.num = num

    def test(self):
        print('正在使用Calculate类进行运算...')

    @classmethod
    def test1(cls):
        print('------->Calulate类方法')


def test():
    print('我是测试')

print('__name__:',__name__)

# test()

if __name__ == '__main__':
    test()